package cn.tedu.front.details.dao.persest.repository.impl;

import cn.tedu.front.details.dao.persest.mapper.CityMapper;
import cn.tedu.front.details.dao.persest.repository.CityRepository;
import cn.tedu.front.details.pojo.vo.CityVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class CityRepositoryImpl implements CityRepository {
    @Autowired
    private CityMapper cityMapper;

    @Override
    public List<CityVO> listByParent(Long parentId) {
        List<CityVO> cityVOS = cityMapper.listByParent(parentId);
        return cityVOS;
    }

    @Override
    public void saveList(Long parentId, List<CityVO> districtList) {

    }
}
